<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fdk-aac: original/libSBRdec/src/transcendent.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fdk-aac
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ed137715e08969a186ec660e8ae6e2fb.html">original</a></li><li class="navelem"><a class="el" href="dir_222de58a05c98cc4a78309a37525cd28.html">libSBRdec</a></li><li class="navelem"><a class="el" href="dir_c997d48ad60fbe63e2ba342b9c79db98.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">transcendent.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>FDK Fixed Point Arithmetic Library Interface.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;sbrdecoder.h&quot;</code><br />
<code>#include &quot;<a class="el" href="sbr__rom_8h_source.html">sbr_rom.h</a>&quot;</code><br />
</div>
<p><a href="transcendent_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a73a42ed384110771cba8c2087024a8e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="transcendent_8h.html#a73a42ed384110771cba8c2087024a8e0">FDK_add_MantExp</a> (FIXP_SGL a_m, <a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> a_e, FIXP_SGL b_m, <a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> b_e, FIXP_SGL *ptrSum_m, <a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> *ptrSum_e)</td></tr>
<tr class="memdesc:a73a42ed384110771cba8c2087024a8e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add two values given by mantissa and exponent.  <a href="transcendent_8h.html#a73a42ed384110771cba8c2087024a8e0">More...</a><br /></td></tr>
<tr class="separator:a73a42ed384110771cba8c2087024a8e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf8f732ba34855b27e85500858e4afc5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="transcendent_8h.html#adf8f732ba34855b27e85500858e4afc5">FDK_add_MantExp</a> (FIXP_DBL a, <a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> a_e, FIXP_DBL b, <a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> b_e, FIXP_DBL *ptrSum, <a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> *ptrSum_e)</td></tr>
<tr class="separator:adf8f732ba34855b27e85500858e4afc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>FDK Fixed Point Arithmetic Library Interface. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="adf8f732ba34855b27e85500858e4afc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf8f732ba34855b27e85500858e4afc5">&#9670;&nbsp;</a></span>FDK_add_MantExp() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void FDK_add_MantExp </td>
          <td>(</td>
          <td class="paramtype">FIXP_DBL&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a>&#160;</td>
          <td class="paramname"><em>a_e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a>&#160;</td>
          <td class="paramname"><em>b_e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL *&#160;</td>
          <td class="paramname"><em>ptrSum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> *&#160;</td>
          <td class="paramname"><em>ptrSum_e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Mantissa of 1st operand a </td></tr>
    <tr><td class="paramname">a_e</td><td>Exponent of 1st operand a </td></tr>
    <tr><td class="paramname">b</td><td>Mantissa of 2nd operand b </td></tr>
    <tr><td class="paramname">b_e</td><td>Exponent of 2nd operand b </td></tr>
    <tr><td class="paramname">ptrSum</td><td>Mantissa of result </td></tr>
    <tr><td class="paramname">ptrSum_e</td><td>Exponent of result </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a73a42ed384110771cba8c2087024a8e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73a42ed384110771cba8c2087024a8e0">&#9670;&nbsp;</a></span>FDK_add_MantExp() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void FDK_add_MantExp </td>
          <td>(</td>
          <td class="paramtype">FIXP_SGL&#160;</td>
          <td class="paramname"><em>a_m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a>&#160;</td>
          <td class="paramname"><em>a_e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_SGL&#160;</td>
          <td class="paramname"><em>b_m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a>&#160;</td>
          <td class="paramname"><em>b_e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_SGL *&#160;</td>
          <td class="paramname"><em>ptrSum_m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> *&#160;</td>
          <td class="paramname"><em>ptrSum_e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add two values given by mantissa and exponent. </p>
<p>Mantissas are in fract format with values between 0 and 1. <br  />
 The base for exponents is 2. Example: <img class="formulaInl" alt="$ a = a\_m * 2^{a\_e} $" src="form_12.png"/><br  />
 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a_m</td><td>Mantissa of 1st operand a </td></tr>
    <tr><td class="paramname">a_e</td><td>Exponent of 1st operand a </td></tr>
    <tr><td class="paramname">b_m</td><td>Mantissa of 2nd operand b </td></tr>
    <tr><td class="paramname">b_e</td><td>Exponent of 2nd operand b </td></tr>
    <tr><td class="paramname">ptrSum_m</td><td>Mantissa of result </td></tr>
    <tr><td class="paramname">ptrSum_e</td><td>Exponent of result </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
